/* =================
  Variables
  ================= */
$primary-color: #0366d6;
$secondary-color: #F1F8FF;
$third-color: #3F3D56;

/* =================
  General Styles
  ================= */
* {
  font-family: 'Vollkorn', serif;
}

h1, h2, h3, h4, h5, h6 {
  color: $third-color;
  font-family: 'Unica One', serif;
  text-transform: uppercase;
}

h1 {
  margin: 20px 0;
}

h1 span, h3 span {
  background-color: $third-color;
  color: $secondary-color;
  font-family: 'Unica One', serif;
  padding: 3px 8px;
}

button.button {
  border-radius: 20px;
  bottom: 0px;
  font-family: 'Unica One', serif;
  font-size: 20px;
  height: 40px;
  margin: 3px 0px;
  padding: 2px 20px;
  position: relative;
  text-transform: uppercase;
  transition: all .2s;
  -webkit-transition: all .2s;
  background: #fff;

  &.button-primary {
    border: 3px solid $primary-color;
    color: $third-color;

    &:hover {
      background: $primary-color;
      color: $secondary-color;
    }
  }

  &.button-secondary {
    border: 3px solid $secondary-color;
    color: $third-color;

    &:hover {
      background: $secondary-color;
    }
  }

  &:hover {
    box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
    bottom: 2px;
  }
}

body, html, #root {
  height: 100%;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizelegibility;
  font-family: "Dosis", sans-serif;
}

h2 {
  margin: 20px 0;
}

footer {
  background-color: $third-color;
  padding: 15px;
  h3 {
    color: $secondary-color;
  }
}

#nav-search-icon {
  cursor: pointer;
}

#loader {
  $bg: #fff;
  $fill: $primary-color;

  .hourglass{
      display:block;
      background:$bg;
      margin:3em auto;
      width:2em;
      height:4em;
      animation:hourglass 1s linear infinite;
  }

  .outer{
      fill:$fill;
  }

  .middle{
      fill:$bg;
  }

  @keyframes hourglass{
      0%{
          transform:rotate(0deg);
          box-shadow:
              inset $fill 0 -0em 0 0,
              inset $bg 0 -2em 0 0,
              inset $fill 0 -4em 0 0;
      }
      80%{
          transform:rotate(0deg);
          box-shadow:
              inset $fill 0 -2em 0 0,
              inset $bg 0 -2em 0 0,
              inset $fill 0 -2em 0 0;
      }
      100%{
          transform:rotate(180deg);
          box-shadow:
              inset $fill 0 -2em 0 0,
              inset $bg 0 -2em 0 0,
              inset $fill 0 -2em 0 0;
      }
  }
}

/* =================
  Header
   ================= */

nav form .form-control {
  max-width: calc(100% - 50px);
  margin-right: 15px;
}

/* =================
  Splash Page styles
   ================= */

#splash .row {
  align-items: center;
  background: linear-gradient(60deg, #eee 50%, #fff 50%);
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  height: 100%;
  justify-content: center;
  padding: 100px;
  width: 100%;

  @media (max-width: 768px) {
    padding: 35px;
  }

  .splash-image {
    height: 100%;

    img {
      width: 100%;
    }
  }

  .splash-title {
    height: 100%;
    margin: 30px;
    padding: 15px;
  }
}

#models-splash {
  .model-splash {
    margin: 0 0 20px 0;

    img {
      width: 100%;
      margin: 10px 0;
    }
  }
}

#splash-call-to {
  background: $secondary-color;
  text-align: center;

  .splash-call-to-content {
    padding: 25px 0;
  }
}

/* =================
  Search Page styles
   ================= */

.sui-paging-info, .sui-single-option-facet, .sui-multi-checkbox-facet__option-count, .sui-multi-checkbox-facet__input-text, .sui-facet__count {
  font-size: 15px !important;
}

.sui-layout-main-header {
  padding-bottom: 10px;
}

.sui-result__title-link {
  color: $primary-color !important;
}

.sui-search-box__submit {
  background: $primary-color !important;
}

.sui-result__details li:nth-child(2) .sui-result__value {
  background: $third-color;
  color: $secondary-color;
  border-radius: 5px;
  font-family: monospace;
  -webkit-border-radius: 5px;
  display: block;
  padding: 10px;
  white-space: pre-wrap;
}
